﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IService;
using Service;

namespace HouseKeeping.View
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request["loginBtn"] != null)
            {
                string userName = Request["userName"];
                string pwd = Request["pwd"];
                ICheckService a = new CheckService();
               bool res=a.CheckLogin(userName, pwd);
               if (res == true)
               {
                   Session["UserName"] = userName;
                   Response.Redirect("/Motherboard/HomeMotherPage.htm");
               }
            }
           
        }
    }
}